package com.wxy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wxy.dao.usermapper;
import com.wxy.domain.user;
@Service
public class userserviceImpl implements userservice{

	@Autowired
	private usermapper usermapper;
	@Override
	public user findById(int id) {
		// TODO 自动生成的方法存根
		return usermapper.findById(id);
	}
	@Override
	@Transactional
	public void update() {
		// TODO 自动生成的方法存根
		usermapper.update1();
		int n=1/0;
		usermapper.update2();
	}
}
